package com.potenza.training.dictionary.controller;

import com.potenza.training.dictionary.entity.HopePersonalSkills;
import com.potenza.training.dictionary.server.HopePersonalSkillsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hope")
public class HopePersonalSkillsController {

    @Autowired
    private HopePersonalSkillsService hopePersonalSkillsService;

    /**
     * 获取所有的个人技能
     * @return
     */
    @GetMapping("/skills")
    public List<HopePersonalSkills> findAll(){
        return hopePersonalSkillsService.findAll();
    }

}
